<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : baseProperty
    Created on : Jan 28, 2012, 12:14:06 PM
    Author     : Oscar Ivan Prado
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:icecore="http://www.icefaces.org/icefaces/core"
                xmlns:ace="http://www.icefaces.org/icefaces/components"
                xmlns:ice="http://www.icesoft.com/icefaces/component"
                template="/WEB-INF/facelets/base/controls/PanelCollapsible.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="collapsableContent">
        <ice:panelGrid columns="6">
            <ice:outputText value="#{i18n['generator.match.common.template']}"/>
            <ice:selectOneMenu style="width: 128px" >
                <c:forEach items="#{matchContextBackingBean.templates}" var="template">
                    <f:selectItem itemLabel="#{template.name}"/>
                </c:forEach>
            </ice:selectOneMenu>
            <ice:outputText value="#{i18n['generator.match.common.name']}"/>
            <ice:inputText value="#{matchBackingBean.match.name}"/>
            <ice:outputText value="#{i18n['generator.match.common.prefix']}"/>
            <ice:inputText value="#{matchBackingBean.match.prefix}"/>
            <ice:outputText value="#{i18n['generator.match.common.relocate']}"/>
            <ice:selectOneMenu style="width: 128px">
                <f:selectItem itemLabel="#{i18n['common.itemlabel.yes']}" itemValue="#{i18n['common.itemvalue.yes']}"/>
                <f:selectItem itemLabel="#{i18n['common.itemlabel.no']}" itemValue="#{i18n['common.itemvalue.no']}"/>
            </ice:selectOneMenu>
            <ice:outputText value="#{i18n['generator.match.common.relocatePath']}"/>
            <ice:inputText value="#{matchBackingBean.match.relocatePath}"/>
            <ice:outputText value="#{i18n['generator.match.common.replace']}"/>
            <ice:inputText value="#{matchBackingBean.match.replace}"/>
            <ice:outputText value="#{i18n['generator.match.common.active']}"/>
            <ice:selectOneMenu style="width: 128px">
                <f:selectItem itemLabel="#{i18n['common.itemlabel.yes']}" itemValue="#{i18n['common.itemvalue.yes']}"/>
                <f:selectItem itemLabel="#{i18n['common.itemlabel.no']}" itemValue="#{i18n['common.itemvalue.no']}"/>
            </ice:selectOneMenu>
        </ice:panelGrid>
        <ice:panelGroup style="text-align: right">
            <ice:commandButton value="#{i18n['common.save']}" actionListener="#{matchBackingBean.onModify}"/>
        </ice:panelGroup>
    </ui:define>
</ui:composition>